
<style type="text/css">
    .isshow{display: none}
</style>
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#edit" data-toggle="tab">默认回复</a></li>
        </ul>
    </div>

    <div class="panel-body" style="padding-bottom: 0;">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane active" id="edit">
                <div class="widget-body no-padding">
                    <form id="edit-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST" action="">
                        {:token()}
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th width="15%">{:__('Title')}</th>
                                <th width="85%">{:__('Value')}</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>{:__('Type')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <div class="radio">
                                                {foreach name="typeList" item="vo"}
                                                <label for="row[type]-{$key}" style="width: 10%;">
                                                    <input id="row[type]-{$key}" {in name="key" value="$row.type"}class="type" checked="checked"{/in} name="row[type]" type="radio" value="{$key}"> {$vo}
                                                </label>
                                                {/foreach}
                                            </div>
                                        </div>
                                        <div class="col-sm-4"></div>
                                    </div>
                                </td>
                            </tr>
                            <tr class="text isshow">
                                <td>{:__('回复内容')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <textarea id="c-content" style="height: 200px;" data-rule="required" aria-invalid="true" class="form-control" name="row[data][content]">{$data.content|default=''}</textarea>
                                        </div>
                                        <div class="col-sm-4"></div>
                                    </div>
                                </td>
                            </tr>
                            <tr class="image isshow">
                                <td>{:__('上传图片')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <div class="input-group">
                                                <input id="c-image" data-rule="required" class="form-control" size="50" name="row[data][image]" type="text" value="{$data.image|default=''}">
                                                <div class="input-group-addon no-border no-padding">
                                                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/jpeg,image/png,image/jpg,image/bmp" data-url="weixin/reply/keyword/upload" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                                </div>
                                                <span class="msg-box n-right" for="c-image"></span>
                                            </div>
                                            <ul class="row list-inline plupload-preview" id="p-image"></ul>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr class="news isshow">
                                <td>{:__('选择图文')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <input id="c-news" data-source="weixin/news/index" data-rule="required" data-params='{"custom[parent_id]":"0"}' data-field="cate_name" class="form-control selectpage sp_input" name="row[data][news]" type="text" value="{$data['id']|default=''}" autocomplete="off">
                                        </div>
                                        <div class="col-sm-4"></div>
                                    </div>
                                </td>
                            </tr>
                            <tr class="voice isshow">
                                <td>{:__('上传音频')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <div class="input-group">
                                                <input id="c-voice" data-rule="required" class="form-control" size="50" name="row[data][voice]" type="text" value="{$data.voice|default=''}">
                                                <div class="input-group-addon no-border no-padding">
                                                    <span><button type="button" id="plupload-voice" class="btn btn-danger plupload" data-input-id="c-voice" data-mimetype="mp3" data-url="weixin/reply/keyword/upload" data-multiple="false" data-preview-id="p-voice"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                                    <span><button type="button" id="fachoose-voice" class="btn btn-primary fachoose" data-input-id="c-voice" data-mimetype="mp3" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                                </div>
                                                <span class="msg-box n-right" for="c-voice"></span>
                                            </div>
                                            <ul class="row list-inline plupload-preview" id="p-voice"></ul>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>{:__('Status')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <div class="radio">
                                                {:build_radios('row[status]', ['1'=>__('Normal'), '0'=>__('Hidden')], $row['status'])}
                                            </div>
                                        </div>
                                        <div class="col-sm-4"></div>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                            <tfoot>
                            <tr>
                                <td></td>
                                <td>
                                    <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
                                    <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                                </td>
                                <td></td>
                                <td></td>
                            </tr>
                            </tfoot>
                        </table>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
